<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="datamanager_v1.html">Data Manager API</a> . <a href="datamanager_v1.events.html">events</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#ingest">ingest(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Uploads a list of Event resources from the provided Destination.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="ingest">ingest(body=None, x__xgafv=None)</code>
  <pre>Uploads a list of Event resources from the provided Destination.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request to upload audience members to the provided destinations. Returns an IngestEventsResponse.
  &quot;consent&quot;: { # [Digital Markets Act (DMA)](//digital-markets-act.ec.europa.eu/index_en) consent settings for the user. # Optional. Request-level consent to apply to all users in the request. User-level consent overrides request-level consent, and can be specified in each Event.
    &quot;adPersonalization&quot;: &quot;A String&quot;, # Optional. Represents if the user consents to ad personalization.
    &quot;adUserData&quot;: &quot;A String&quot;, # Optional. Represents if the user consents to ad user data.
  },
  &quot;destinations&quot;: [ # Required. The list of destinations to send the events to.
    { # The Google product you&#x27;re sending data to. For example, a Google Ads account.
      &quot;linkedAccount&quot;: { # Represents a specific account. # Optional. An account that the calling user&#x27;s `login_account` has access to, through an established account link. For example, a data partner&#x27;s `login_account` might have access to a client&#x27;s `linked_account`. The partner might use this field to send data from the `linked_account` to another `operating_account`.
        &quot;accountId&quot;: &quot;A String&quot;, # Required. The ID of the account. For example, your Google Ads account ID.
        &quot;accountType&quot;: &quot;A String&quot;, # Optional. The type of the account. For example, `GOOGLE_ADS`. Either `account_type` or the deprecated `product` is required. If both are set, the values must match.
        &quot;product&quot;: &quot;A String&quot;, # Deprecated. Use `account_type` instead.
      },
      &quot;loginAccount&quot;: { # Represents a specific account. # Optional. The account used to make this API call. To add or remove data from the `operating_account`, this `login_account` must have write access to the `operating_account`. For example, a manager account of the `operating_account`, or an account with an established link to the `operating_account`.
        &quot;accountId&quot;: &quot;A String&quot;, # Required. The ID of the account. For example, your Google Ads account ID.
        &quot;accountType&quot;: &quot;A String&quot;, # Optional. The type of the account. For example, `GOOGLE_ADS`. Either `account_type` or the deprecated `product` is required. If both are set, the values must match.
        &quot;product&quot;: &quot;A String&quot;, # Deprecated. Use `account_type` instead.
      },
      &quot;operatingAccount&quot;: { # Represents a specific account. # Required. The account to send the data to or remove the data from.
        &quot;accountId&quot;: &quot;A String&quot;, # Required. The ID of the account. For example, your Google Ads account ID.
        &quot;accountType&quot;: &quot;A String&quot;, # Optional. The type of the account. For example, `GOOGLE_ADS`. Either `account_type` or the deprecated `product` is required. If both are set, the values must match.
        &quot;product&quot;: &quot;A String&quot;, # Deprecated. Use `account_type` instead.
      },
      &quot;productDestinationId&quot;: &quot;A String&quot;, # Required. The object within the product account to ingest into. For example, a Google Ads audience ID, a Display &amp; Video 360 audience ID or a Google Ads conversion action ID.
      &quot;reference&quot;: &quot;A String&quot;, # Optional. ID for this `Destination` resource, unique within the request. Use to reference this `Destination` in the IngestEventsRequest and IngestAudienceMembersRequest.
    },
  ],
  &quot;encoding&quot;: &quot;A String&quot;, # Optional. Required for UserData uploads. The encoding type of the user identifiers. For hashed user identifiers, this is the encoding type of the hashed string. For encrypted hashed user identifiers, this is the encoding type of the outer encrypted string, but not necessarily the inner hashed string, meaning the inner hashed string could be encoded in a different way than the outer encrypted string. For non `UserData` uploads, this field is ignored.
  &quot;encryptionInfo&quot;: { # Encryption information for the data being ingested. # Optional. Encryption information for UserData uploads. If not set, it&#x27;s assumed that uploaded identifying information is hashed but not encrypted. For non `UserData` uploads, this field is ignored.
    &quot;gcpWrappedKeyInfo&quot;: { # Information about the Google Cloud Platform wrapped key. # Google Cloud Platform wrapped key information.
      &quot;encryptedDek&quot;: &quot;A String&quot;, # Required. The base64 encoded encrypted data encryption key.
      &quot;kekUri&quot;: &quot;A String&quot;, # Required. Google Cloud Platform [Cloud Key Management Service resource ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the format of &quot;projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}&quot;.
      &quot;keyType&quot;: &quot;A String&quot;, # Required. The type of algorithm used to encrypt the data.
      &quot;wipProvider&quot;: &quot;A String&quot;, # Required. The [Workload Identity](//cloud.google.com/iam/docs/workload-identity-federation) pool provider required to use KEK.
    },
  },
  &quot;events&quot;: [ # Required. The list of events to send to the specified destinations. At most 2000 Event resources can be sent in a single request.
    { # An event representing a user interaction with an advertiser&#x27;s website or app.
      &quot;adIdentifiers&quot;: { # Identifiers and other information used to match the conversion event with other online activity (such as ad clicks). # Optional. Identifiers and other information used to match the conversion event with other online activity (such as ad clicks).
        &quot;gbraid&quot;: &quot;A String&quot;, # Optional. The click identifier for clicks associated with app events and originating from iOS devices starting with iOS14.
        &quot;gclid&quot;: &quot;A String&quot;, # Optional. The Google click ID (gclid) associated with this event.
        &quot;landingPageDeviceInfo&quot;: { # Information about the device being used (if any) when the event happened. # Optional. Information gathered about the device being used (if any) at the time of landing onto the advertiser’s site after interacting with the ad.
          &quot;ipAddress&quot;: &quot;A String&quot;, # Optional. The IP address of the device for the given context. **Note:** Google Ads does not support IP address matching for end users in the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH). Add logic to conditionally exclude sharing IP addresses from users from these regions and ensure that you provide users with clear and comprehensive information about the data you collect on your sites, apps, and other properties and get consent where required by law or any applicable Google policies. See the [About offline conversion imports](https://support.google.com/google-ads/answer/2998031) page for more details.
          &quot;userAgent&quot;: &quot;A String&quot;, # Optional. The user-agent string of the device for the given context.
        },
        &quot;sessionAttributes&quot;: &quot;A String&quot;, # Optional. Session attributes for event attribution and modeling.
        &quot;wbraid&quot;: &quot;A String&quot;, # Optional. The click identifier for clicks associated with web events and originating from iOS devices starting with iOS14.
      },
      &quot;cartData&quot;: { # The cart data associated with the event. # Optional. Information about the transaction and items associated with the event.
        &quot;items&quot;: [ # Optional. The list of items associated with the event.
          { # Represents an item in the cart associated with the event.
            &quot;merchantProductId&quot;: &quot;A String&quot;, # Optional. The product ID within the Merchant Center account.
            &quot;quantity&quot;: &quot;A String&quot;, # Optional. The number of this item associated with the event.
            &quot;unitPrice&quot;: 3.14, # Optional. The unit price excluding tax, shipping, and any transaction level discounts.
          },
        ],
        &quot;merchantFeedLabel&quot;: &quot;A String&quot;, # Optional. The Merchant Center feed label associated with the feed of the items.
        &quot;merchantFeedLanguageCode&quot;: &quot;A String&quot;, # Optional. The language code in ISO 639-1 associated with the Merchant Center feed of the items.where your items are uploaded.
        &quot;merchantId&quot;: &quot;A String&quot;, # Optional. The Merchant Center ID associated with the items.
        &quot;transactionDiscount&quot;: 3.14, # Optional. The sum of all discounts associated with the transaction.
      },
      &quot;consent&quot;: { # [Digital Markets Act (DMA)](//digital-markets-act.ec.europa.eu/index_en) consent settings for the user. # Optional. Information about whether the associated user has provided different types of consent.
        &quot;adPersonalization&quot;: &quot;A String&quot;, # Optional. Represents if the user consents to ad personalization.
        &quot;adUserData&quot;: &quot;A String&quot;, # Optional. Represents if the user consents to ad user data.
      },
      &quot;conversionValue&quot;: 3.14, # Optional. The conversion value associated with the event, for value-based conversions.
      &quot;currency&quot;: &quot;A String&quot;, # Optional. The currency code associated with all monetary values within this event.
      &quot;customVariables&quot;: [ # Optional. Additional key/value pair information to send to the conversion containers (conversion action or FL activity).
        { # Custom variable for ads conversions.
          &quot;destinationReferences&quot;: [ # Optional. Reference string used to determine which of the Event.destination_references the custom variable should be sent to. If empty, the Event.destination_references will be used.
            &quot;A String&quot;,
          ],
          &quot;value&quot;: &quot;A String&quot;, # Optional. The value to store for the custom variable.
          &quot;variable&quot;: &quot;A String&quot;, # Optional. The name of the custom variable to set. If the variable is not found for the given destination, it will be ignored.
        },
      ],
      &quot;destinationReferences&quot;: [ # Optional. Reference string used to determine the destination. If empty, the event will be sent to all destinations in the request.
        &quot;A String&quot;,
      ],
      &quot;eventDeviceInfo&quot;: { # Information about the device being used (if any) when the event happened. # Optional. Information gathered about the device being used (if any) when the event happened.
        &quot;ipAddress&quot;: &quot;A String&quot;, # Optional. The IP address of the device for the given context. **Note:** Google Ads does not support IP address matching for end users in the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH). Add logic to conditionally exclude sharing IP addresses from users from these regions and ensure that you provide users with clear and comprehensive information about the data you collect on your sites, apps, and other properties and get consent where required by law or any applicable Google policies. See the [About offline conversion imports](https://support.google.com/google-ads/answer/2998031) page for more details.
        &quot;userAgent&quot;: &quot;A String&quot;, # Optional. The user-agent string of the device for the given context.
      },
      &quot;eventSource&quot;: &quot;A String&quot;, # Optional. Signal for where the event happened (web, app, in-store, etc.).
      &quot;eventTimestamp&quot;: &quot;A String&quot;, # Required. The time the event occurred.
      &quot;experimentalFields&quot;: [ # Optional. A list of key/value pairs for experimental fields that may eventually be promoted to be part of the API.
        { # Experimental field representing unofficial fields.
          &quot;field&quot;: &quot;A String&quot;, # Optional. The name of the field to use.
          &quot;value&quot;: &quot;A String&quot;, # Optional. The value the field to set.
        },
      ],
      &quot;lastUpdatedTimestamp&quot;: &quot;A String&quot;, # Optional. The last time the event was updated.
      &quot;transactionId&quot;: &quot;A String&quot;, # Optional. The unique identifier for this event. Required for conversions using multiple data sources.
      &quot;userData&quot;: { # Data that identifies the user. At least one identifier is required. # Optional. Pieces of user provided data, representing the user the event is associated with.
        &quot;userIdentifiers&quot;: [ # Required. The identifiers for the user. It&#x27;s possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 `userIdentifiers` can be provided in a single AudienceMember or Event.
          { # A single identifier for the user.
            &quot;address&quot;: { # Address information for the user. # The known components of a user&#x27;s address. Holds a grouping of identifiers that are matched all at once.
              &quot;familyName&quot;: &quot;A String&quot;, # Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
              &quot;givenName&quot;: &quot;A String&quot;, # Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
              &quot;postalCode&quot;: &quot;A String&quot;, # Required. The postal code of the user&#x27;s address.
              &quot;regionCode&quot;: &quot;A String&quot;, # Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user&#x27;s address.
            },
            &quot;emailAddress&quot;: &quot;A String&quot;, # Hashed email address using SHA-256 hash function after normalization.
            &quot;phoneNumber&quot;: &quot;A String&quot;, # Hashed phone number using SHA-256 hash function after normalization (E164 standard).
          },
        ],
      },
      &quot;userProperties&quot;: { # Advertiser-assessed information about the user at the time that the event happened. See https://support.google.com/google-ads/answer/14007601 for more details. # Optional. Advertiser-assessed information about the user at the time that the event happened.
        &quot;customerType&quot;: &quot;A String&quot;, # Optional. Type of the customer associated with the event.
        &quot;customerValueBucket&quot;: &quot;A String&quot;, # Optional. The advertiser-assessed value of the customer.
      },
    },
  ],
  &quot;validateOnly&quot;: True or False, # Optional. For testing purposes. If `true`, the request is validated but not executed. Only errors are returned, not results.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response from the IngestEventsRequest.
  &quot;requestId&quot;: &quot;A String&quot;, # The auto-generated ID of the request.
}</pre>
</div>

</body></html>